<template>
    <div class="yemianl">
        <router-link to="MyMine">&lt;</router-link>
        <div class="touxiangl">
            <div class="touxiangl-nei">
                <img src="./img/NoPath.png" alt="">
            </div>
        </div>
        <p class="ca-p">猫咪详情</p>
        <div class="neirongl">
            <h1>平均摄入营养</h1>
            <ul class="nm">
                <li v-for="v in xiangqing" :key="v.value" class="liel-li">
                    {{ v.ka }}   {{ v.ke }}   {{ v.liang }}
                </li>
            </ul>
            <ul>
                <li v-for="v in liebiaol" :key="v.value" class="liebiaol">
                    <p class="liebiaol-p">{{ v.lie }}</p>
                    <div class="liebiaol-biao">{{ v.biao }}</div>
                </li>
            </ul>
        </div>
    </div>
  </template>
  
  <script>
  export default {
    name: "ten",
    data(){
        return{
            xiangqing:[
                {
                    ka:"卡路里",
                    ke:"143g",
                    liang:"15%"
                },
                {
                    ka:"碳水化合物",
                    ke:"26g",
                    liang:"18%"
                },
                {
                    ka:"蛋白质",
                    ke:"0g",
                    liang:"0%"
                },
                {
                    ka:"脂肪",
                    ke:"3.5g",
                    liang:"2.4%"
                }
            ],
            liebiaol:[
                {
                    lie:"疫苗预约",
                    biao:"三天后接种"
                },
                {
                    lie:"生日提醒",
                    biao:"倒计时五十六天"
                },
                {
                    lie:"锻炼里程",
                    biao:"今日锻炼5公里"
                },
                {
                    lie:"生病史",
                    biao:"暂无 猫咪很健康"
                },
            ]
        }
    }
  };
  </script>
  
  <style>
     *{
        padding: 0;
        margin: 0;
    }
    
    .yemianl a{
        text-decoration: none;
        font-size: 30px;
        color: black;
        
    }
     .yemianl{
        width: 100%;
        min-height: 135vh;
        background: url("./img/custom\ –\ 8.png") center center no-repeat;
        background-size: 100% 100%;
        margin-bottom: 200px;
    }
    .touxiangl{
        width: 206px;
        height: 200px;
        border: 5px solid rgb(111, 111, 111);
        border-radius: 50%;
        margin: 0 auto;
        margin-top: 10px;
    }
    .touxiangl-nei{
        width: 84%;
        height: 175px;
        border: 3px solid rgb(111, 111, 111);
        border-radius: 50%;
        margin: 0 auto;
        margin-top: 10px;
    }
    .touxiangl-nei img{
        height: 175px;
    }
    .liebiaol-p{
        color: rgb(112, 112, 112);
        font-size: 25px;
        text-align: center;
    }
    h1{
        color: rgb(223, 127, 127);
    }
    .ca-p{
        font-size: 15px;
        margin-left: 5%;
        margin-bottom: 10px;
        font-weight: bold;
        text-align: center;
    }
    .liel-li{
        list-style: none;
        font-size: 20px;
        margin-top: 20px;
    }
    .neirongl{
        width: 70%;
        height: 300px;
        margin: 0 auto;
        background-color:rgb(243, 228, 218) ;
        border-radius: 8%;
        text-align: center;
        /* margin-left: 20px; */
        
    }
   .nm{
    display: flex;
    flex-direction: column;
   }
    .liebiaol{
        width: 45%;
        height: 115px;
        text-align: center;
        float: left;
        margin-left: 3%;
        background-color:rgb(243, 228, 218) ;
        border-radius: 8%;
        margin-top: 50px;
        list-style: none;
    }
    .liebiaol-biao{
        margin-top: 10px;
        font-size: 18px;
    }
  </style>